<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑分类</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../../layui/v2.9.8/css/layui.css" rel="stylesheet">
    <link href="../../css/basic.css" rel="stylesheet">
</head>
<body>

<form class="layui-form layui-form-pane layer-content-area" id="categoryForm" action="" lay-filter="category-val-filter">
    <!-- 当前数据的ID -->
    <input type="hidden" name="code" id="code" value=""/>

    <div class="layui-form-item">
        <label class="layui-form-label">分类编码</label>
        <div class="layui-input-block">
            <input type="text" name="categoryCode" autocomplete="off" placeholder="请输入" lay-verify="required"
                   class="layui-input" disabled>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">分类名称</label>
        <div class="layui-input-block">
            <input type="text" name="categoryName" autocomplete="off" placeholder="请输入" lay-verify="required"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value="1" title="上架" checked>
            <input type="radio" name="status" value="0" title="下架">
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">分类描述</label>
        <div class="layui-input-block">
            <textarea name="categoryDesc" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <button class="layui-btn" lay-submit lay-filter="category-submit">确认</button>
        <button class="layui-btn layui-btn-primary" id="btn-category-cancel">取消</button>
    </div>
</form>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="../../layui/v2.9.8/layui.js"></script>
<script src="../../js/common/const.js"></script>
<script src="../../js/common/util.js"></script>
<script src="../../js/category/category-edit.js"></script>
</body>
</html>